package com.zhuzi.webservice.impl;

import com.zhuzi.webservice.CatService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author zhuzi
 * 2022/8/2 16:48
 */
@WebService(serviceName = "CatService", // 与接口中指定的name一致
        //targetNamespace = "http://webservice.zhuzi.com", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.zhuzi.webservice.CatService"// 接口地址
)
@Component
public class CatServiceImpl implements CatService {


    @Override
    public String message(String name) {
        //
        return "一只小猫猫";
    }
}
